package com.peace.hospital.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peace.hospital.entity.hospitalization.entity.Department;
import com.peace.hospital.entity.hospitalization.entity.Position;
import com.peace.hospital.entity.hospitalization.entity.Staffinfo;
import com.peace.hospital.mapper.StaffinfoMapper;
import com.peace.hospital.service.IStaffinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 职员表实现类
 * </p>
 *
 * @author xie
 * @since 2019-11-06
 */
@Service
public class StaffinfoServiceImpl extends ServiceImpl<StaffinfoMapper, Staffinfo> implements IStaffinfoService {

    @Autowired
    private StaffinfoMapper staffinfoMapper;


    @Override
    public Staffinfo selectStaffByDepid(Department department, Position position) {

        return staffinfoMapper.selectStaffByDepid(department,position);

    }

}
